home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / VaSimpleP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  1.6 KB  |  64 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: VaSimpleP.h,v $ $Revision: 1.21 $ $Date: 92/05/14 13:00:46 $ */
  6. /*
  7. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8. #ifndef _XmVaSimpleP_h
  9. #define _XmVaSimpleP_h
  10.  
  11. #include <Xm/XmP.h>
  12.  
  13. #ifdef _NO_PROTO
  14. # include <varargs.h>
  15. # define Va_start(a,b) va_start(a)
  16. #else
  17. # include <stdarg.h>
  18. # define Va_start(a,b) va_start(a,b)
  19. #endif
  20.  
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. typedef struct _XtTypedArg {
  27.     String      name;
  28.     String      type;
  29.     XtArgVal    value;
  30.     int         size;
  31. } XtTypedArg;
  32.  
  33. typedef struct _XtTypedArg* XtTypedArgList;
  34.  
  35. #define StringToName(string) XrmStringToName(string)
  36.  
  37.  
  38. /********  Private Function Declarations  ********/
  39. #ifdef _NO_PROTO
  40. extern void _XmCountVaList() ;
  41. extern void _XmVaToTypedArgList() ;
  42. #else
  43. extern void _XmCountVaList( 
  44.                         va_list var,
  45.                         int *button_count,
  46.                         int *args_count,
  47.                         int *typed_count,
  48.                         int *total_count) ;
  49. extern void _XmVaToTypedArgList( 
  50.                         va_list var,
  51.                         int max_count,
  52.                         XtTypedArgList *args_return,
  53.                         Cardinal *num_args_return) ;
  54. #endif /* _NO_PROTO */
  55. /********  End Private Function Declarations  ********/
  56.  
  57.  
  58. #ifdef __cplusplus
  59. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  60. #endif
  61.  
  62. #endif /* _XmVaSimpleP_h */
  63. /* DON'T ADD ANYTHING AFTER THIS #endif */
  64.